<template>
  <div>
    <ul>
      <li v-for="item in arr" :key="item.id">{{item.name}}</li>
    </ul>
    <hr/>
    <ul>
      <li v-for="(item,index) in arr1" :key="index">{{item}}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data(){
    return {
      arr:[
        {id:1,name:"吃饭"},
        {id:2,name:"睡觉"},
        {id:3,name:"打豆豆"},
      ],
      arr1:['张三','李四','王五']
    }
  }
}
</script>

<style scoped>

</style>
